package com.zhangxiaofanfan.hotcode.first;


/**
 * TODO
 *
 * @author zhangxiaofanfan
 * @date 2024-06-26 20:33:33
 */
public class HotCode060 {
    public static void main(String[] args) {
        HotCode060 hotCode060 = new HotCode060();

    }
    public boolean exist(char[][] board, String word) {
        return false;
    }

    public boolean bfs(int[][] board, boolean[][] map, String word, int wordIndex, int rowIndex, int colIndex) {
        if (wordIndex >= word.length()) {
            return true;
        }
        if (map[rowIndex][colIndex]) {
            return false;
        }
        int up = rowIndex - 1, down = rowIndex + 1, left = colIndex - 1, right = colIndex + 1;
        if (up >= 0 && !map[up][colIndex] && board[up][colIndex] == word.charAt(wordIndex)) {

        }
        return false;
    }
}
